import http from "@/api/api";

/**
 * 查询分页
 * @param params
 * @returns {Promise}
 */
export const page = (params) => http.post("/cinema/page", params);

/**
 * 查询所有
 * @returns {Promise}
 */
export const list = () => http.get("/cinema/list");

/**
 * 保存
 * @param params
 * @returns {Promise}
 */
export const save = (params) => http.post("/cinema/save", params);

/**
 * 删除
 * @param tenantId
 * @returns {Promise}
 */
export const del = (cinemaId) => http.del("/cinema/del", {cinemaId});

/**
 * 导出所有
 */
export default {
  page,
  list,
  save,
  del
}
